@props(['name', 'module','list'])
<div module class="index_job">
    <div class="wp">
        <div class="index_tit2">
            <div class="left">
                <h4>{{ $name }}</h4>
            </div>
            <div class="right">
                @foreach($list as $d)
                <span data-tab="item-{{ $d->id }}">{{$d->title}}<em></em></span>
                @endforeach
                <a href="/content/{{ $module->id }}">
                    <span>{{__('messages.more')}}<em></em></span>
                </a>
            </div>
        </div>

        <div class="list" id="item-0">
            @foreach($module->articles as $d)
            <div class="item">
                <a href="/article/{{ $d->id }}">
                    <div class="con">
                        <div class="pic" style="background-image: url('{{$d->image}}');"></div>
                        <div class="text">
                            <h4>{{ $d->title }}</h4>
                            <p>{{ $d->desc }}</p>
                            <!-- <div class="time">
                                <div class="aa">
                                    <img src="/source/images/i18.png" alt="">
                                    <span>{{ substr($d->created_at,0,10) }}</span>
                                </div>
                                <div class="type">{{ $d->category->title }}</div>
                            </div> -->
                        </div>
                    </div>
                </a>
            </div>
            @endforeach
            <div class="c"></div>
        </div>
        @foreach($list as $item)
        <div class="list" id="item-{{ $item->id }}" style="display: none;">
            @foreach($item->items as $d)
            <div class="item">
                <a href="/article/{{ $d->id }}">
                    <div class="con">
                        <div class="pic" style="background-image: url('{{$d->image}}');"></div>
                        <div class="text">
                            <h4>{{ $d->title }}</h4>
                            <p>{{ $d->desc }}</p>
                            <!-- <div class="time">
                                <div class="aa">
                                    <img src="/source/images/i18.png" alt="">
                                    <span>{{ substr($d->created_at,0,10) }}</span>
                                </div>
                                <div class="type">{{ $d->category->title }}</div>
                            </div> -->
                        </div>
                    </div>
                </a>
            </div>
            @endforeach
            <div class="c"></div>
        </div>
        @endforeach
    </div>
</div>
<!-- end -->
